﻿<%@ Page Language="C#" MasterPageFile="~/Users/MasterPage.master" AutoEventWireup="true" Inherits="Users_AddressManage" Title="Untitled Page" Codebehind="AddressManage.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../Include/JS/Lib/jquery-1.1.4.js" type="text/javascript"></script>

    <script src="../Include/JS/Products/AddressManage.js" type="text/javascript"></script>
    <script src="../Include/JS/qq.js" type="text/javascript"></script>
    <script type="text/javascript">
var  $j = jQuery.noConflict();
    </script>
    <div class="r_right">
        <div class="r_title3" id="Flag">
            <h2>
                配送地址管理</h2>
        </div>
        <div class="r_right" id="Detail" style="display: none">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
                <tr>
                    <td align="right">
                        收货人姓名：</td>
                    <td>
                        <input id="Hid_id" type="hidden" />
                        <input class="inputbox" id="T_Name" type="text" size="15" name="txtOldPwd"/></td>
                </tr>
                <tr>
                    <td align="right">
                        地址：</td>
                    <td align="left">
                        <div style="float: left;">
                            <select id="Province" onchange="GetCity(this.value)">
                                <option></option>
                            </select>
                            <select id="City" onchange="GetArea(this.value)">
                                <option>请选择</option>
                            </select>
                            <select id="Area">
                                <option>请选择</option>
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        详细地址：</td>
                    <td>
                        <input class="inputbox" id="Address" type="text" size="45" name="txtNewPwd1"/></td>
                </tr>
                <tr>
                    <td align="right">
                        邮编：</td>
                    <td>
                        <input class="inputbox" id="Post" type="text" size="15" name="txtNewPwd1"/></td>
                </tr>
                <tr>
                    <td align="right">
                        固定电话：</td>
                    <td>
                        <input class="inputbox" id="Phone" type="text" size="5" name="txtNewPwd1" value="区号" onfocus="Clear(this)" />
                        <input class="inputbox" id="Phone2" type="text" size="14" name="txtNewPwd2" value="号码" onfocus="Clear(this)" />
                        <input class="inputbox" id="Phone3" type="text" size="14" name="txtNewPwd3" value="分机" onfocus="Clear(this)" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        手机：</td>
                    <td>
                        <input class="inputbox" id="Mobile" type="text" size="15" name="txtNewPwd2"/></td>
                </tr>
                <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
            </table>
            <div class="r_gouwu_button2">
		       <ul>
			     <li><a href="Javascript:" onclick="Save()">保存</a></li></ul>
		    </div>
        </div>
        <div class="r_address_list1">
            <table border="0" cellspacing="0" cellpadding="0" width="729px">
                <tr>
                    <td class="r_bgcolor4">
                        地址列表</td>
                </tr>
                <tr>
                    <td>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#d88468">
                                    <tr class="r_bgcolor3">
                                        <td>
                                            收货人姓名</td>
                                        <td>
                                            具体地址</td>
                                        <td>
                                            邮编</td>
                                        <td>
                                            固定电话</td>
                                        <td>
                                            手机</td>
                                        <td>
                                            修改</td>
                                            <td>
                                            删除</td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="r_bgcolor1">
                                    <td>
                                        <%#Eval("Receiver")%>
                                    </td>
                                    <td>
                                        <%#Eval("ProviceName").ToString() + Eval("CityName").ToString() + Eval("AreaName").ToString() + Eval("Address").ToString()%>
                                    </td>
                                    <td>
                                        <%#Eval("PostDM")%>
                                    </td>
                                    <td>
                                        <%#Eval("Tel")%>
                                    </td>
                                    <td>
                                        <%#Eval("Mobile")%>
                                    </td>
                                    <td class="r_shanchu">
                                        <a href='<%#"Javascript:ModifyAction("+Eval("id").ToString()+")" %>'>修改</a></td>
                                     <td class="r_shanchu">
                                        <a href='<%#"Javascript:Delete("+Eval("id").ToString()+")" %>'>删除</a></td>   
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table></FooterTemplate>
                        </asp:Repeater>
                    </td>
                </tr>
            </table>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                NextPageText="下页" PrevPageText="上页" OnPageChanged="AspNetPager1_PageChanged1">
            </webdiyer:AspNetPager>
        </div>
    </div>
    <div id="div_background" class="divbackground" onclick="HidMask();">
    </div>
    <iframe id="iframe_back" class="diviframe" frameborder="0"></iframe>
    <div id="ShoppingCart" style="z-index: 11; display: none">
    </div>
</asp:Content>
